#include "graph.h"



Plot::Plot( const char* name, const char* axis_x_name, const char* axis_y_name )
{
	setTitle( name );
	insertLegend( new QwtLegend(), QwtPlot::RightLegend );

	setAxisTitle( xBottom, axis_x_name );
	setAxisTitle( yLeft, axis_y_name );

	//white background
	setCanvasBackground( QColor( 255, 255, 255 ) );
    
	QwtPlotMarker *mY = new QwtPlotMarker();
	mY->setLabelAlignment( Qt::AlignRight | Qt::AlignTop );
	mY->setLineStyle( QwtPlotMarker::HLine );
	mY->setYValue( 0.0 );
	mY->attach( this );
};